home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / dev / c / AsyncIO.lha / AsyncIO / src / RecordAsyncFailure.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-18  |  383 b   |  17 lines

  1. #include "async.h"
  2.  
  3.  
  4. /* this function records a failure from a synchronous DOS call into the
  5.  * packet so that it gets picked up by the other IO routines in this module
  6.  */
  7. VOID
  8. AS_RecordSyncFailure( AsyncFile *file )
  9. {
  10. #ifdef ASIO_NOEXTERNALS
  11.     struct DosLibrary    *DOSBase = file->af_DOSBase;
  12. #endif
  13.  
  14.     file->af_Packet.sp_Pkt.dp_Res1    = -1;
  15.     file->af_Packet.sp_Pkt.dp_Res2    = IoErr();
  16. }
  17.